<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        str='open_my_door' 
replace(str[0],str[0],toUpperCase());
for(let i=1;i<str.lenth;i++)
{
    if(str[i]=='_')
    {
        replace(str[i+1],str[i+1],toUpperCase());
    }
}
console.log(str);
    </script>
</body>
</html>